/**
 * @author Thomas Pfeiffer
 * @file   CrypterFactory.h
 * @brief  Implementation of the CrypterFactory class.
 */
#include "Crypter.h"
#include "CrypterFactory.h"
#include "RSACrypt.h"
#include "CaesarCrypt.h"

Crypter* CrypterFactory::CreateCrypter( TAlgorithm enc )
{
	if (enc == eCaesar) {
		return new CaesarCrypt();
	} else if (enc == eRSA) {
		return new RSACrypt();
	} else {
		return 0;
	}

}
